package com.demo2;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * <p><em>Created on 2021/1/28 9:30</em></p>
 *
 * @author x
 * @since 1.0.1
 */
public class DateFormatterImpl {
    private SimpleDateFormat sdfBrasil = new SimpleDateFormat("dd/MM/yyyy");
    private SimpleDateFormat sdfBelgium = new SimpleDateFormat("dd.MM.yyyy");
    private SimpleDateFormat sdfUS = new SimpleDateFormat("MM/dd/yyyy");

    public String formatBrazil(Date date) {
        return this.sdfBrasil.format(date);
    }

    public String formatBelgium(Date date) {
        return this.sdfBelgium.format(date);
    }

    public String formatUS(Date date) {
        return this.sdfUS.format(date);
    }
}
